/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.menosehmais.dto;

import br.com.menosehmais.framework.persistence.DomainObjectDTO;
import br.com.menosehmais.model.RejectedDO;

/**
 *
 * @author Junior JAFJ
 */
public class RejectedDTO extends DomainObjectDTO<RejectedDO>{
    private String id;
    private String idPortlet;

    public RejectedDTO(RejectedDO rejectedDO) {
        super(rejectedDO);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIdPortlet() {
        return idPortlet;
    }

    public void setIdPortlet(String idPortlet) {
        this.idPortlet = idPortlet;
    } 
    
    public RejectedDO toDomainObject() {
        RejectedDO rejectedDO = this.domainObjectInstance();
        rejectedDO.setId(this.id);
        rejectedDO.setReferenceId(this.idPortlet);
        return rejectedDO;
    }
}
